const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    //设置价格
    number: {
        type: Number,
        required: true
    },
    //所属小区
    parentCell: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'Cell'
    }
},{
    timestamps: true
})

module.exports = mongoose.model('Money', schema)